RectShape Class

Draws a (two-dimensional) rectangle in a vector graphics environment.

Events

None

Properties

Height

Width


Methods

Contains


More information available in parent classes: Object2D:Object


Example

The following code in the Paint event of a window draws a diamond shaped rectangle.

Dim r as New RectShape
r.width=75
r.height=75
r.border=100
r.bordercolor=RGB(0,0,0) //black
r.fillcolor= RGB(0,127,127) // teal
r.borderwidth=2.5
r.rotation=-.78
g.DrawObject r,100,100

See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, OvalShape, Picture, PixmapShape, RoundRectShape, StringShape classes.